package com.guigu.tms.commons.aggregation.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 司机表
 * </p>
 *
 * @author wj
 * @since 2022-10-21
 */
@TableName("pd_truck_driver")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TruckDriver implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 用户id，来自用户表
     */
    private String userId;

    /**
     * 所属车队id
     */
    private String fleetId;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 图片
     */
    private String picture;

    /**
     * 驾龄
     */
    private Integer drivingAge;

    @TableField(exist = false)
    private List<DriverJob> driverJob;
}
